package com.oa.admin.entity;


import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;


import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 宿舍申请表
 * </p>
 *
 * @author syb123
 * @since 2019-01-22
 */
@Data
@TableName("admin_dorm")
@ApiModel(value = "宿舍申请表")
public class Dorm extends Model<Dorm> {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.UUID)
    private String id;

    @ApiModelProperty(value = "申请人")
    private String proposer;

    @ApiModelProperty(value = "部门")
    private String department;

    @ApiModelProperty(value = "申请简述")
    private String brief;

    @ApiModelProperty(value = "入住所需配置（1-单人床 2-床垫 3-桌子 4-椅子）（可多选，逗号隔开）")
    private String allocation;

    @ApiModelProperty(value = "入住房间")
    private String dormitory;

    @ApiModelProperty(value = "申请入住时间")
    private Date intoTime;

    @ApiModelProperty(value = "安排入住日期")
    private Date arrangeTime;

    @ApiModelProperty(value = "备注")
    private String remake;

    @ApiModelProperty(value = "房屋编号")
    private String houseNum;

    @ApiModelProperty(value = "申请状态(1-待审批 2-已通过 3-未通过 )")
    private String status;

    @ApiModelProperty(value = "申请时间")
    private Date crteateTime;

    @ApiModelProperty(value = "是否删除（1-已删除 2-未删除）")
    private Integer isDeleted;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}